package com.gsm.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class LoginUserDto {

    @Pattern(message = "手机号不符合规则", regexp = "^(1[3-9]\\d{9}$)")
    @NotBlank(message = "手机号不能为空")
    private String iphoneNo;
    @NotBlank(message = "po不能为空")
    private String po;
    @NotBlank(message = "pc不能为空")
    private String pc;
}
